package com.cat.factory;

import com.cat.dao.UserDao;
import com.cat.dao.impl.UserDaoImpl;

/**
 * @author cat
 * @version 2025/5/23 11:02
 * @description
 * @since JDK17
 */

public class MyBeanFactory01 {
    public static UserDao userDao() {
        return new UserDaoImpl();
    }

    public static UserDao userDao(String name) {
        return new UserDaoImpl(name);
    }
}
